import Layout from '@/layout'
export default {
  path: '/salarys',
  name: 'salarys', // 给路由规则加一个name
  component: Layout, // 每个子模块 其实 都是外层是layout  组件位于layout的二级路由里面
  children: [{
    path: '', // 二级路由不带/,这里表示默认显示
    component: () => import('@/views/salarys'), // 按需引入
    name: 'salarys',
    meta: { // 路由元信息  其实就是存储数据的对象 我们可以在这里放置一些信息
      title: '工资',
      icon: 'money'
    }
  },
  {
    path: 'setting',
    component: () => import('@/views/salarys/setting'),
    name: 'salarysSetting',
    hidden: true,
    meta: {
      title: '设置'
    }
  },
  {
    path: 'details/:yearMonth/:id',
    component: () => import('@/views/salarys/detail'),
    name: 'salarysDetails',
    hidden: true,
    meta: {
      title: '详情'
    }
  },
  {
    path: 'historicalArchiving',
    component: () => import('@/views/salarys/historical'),
    name: 'salarysHistorical',
    hidden: true,
    meta: {
      title: '历史归档'
    }
  },
  {
    path: 'monthStatement',
    component: () => import('@/views/salarys/month'),
    name: 'salarysMonthStatement',
    hidden: true,
    meta: {
      title: '月报表'
    }
  }]
}
